/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package object;

import javax.swing.*;
import java.awt.*;
/**
 *
 * @author BBXP
 */
public class VisibleTest extends JFrame{
    VisualObject z;
    public VisibleTest(){
        z = new Citizen(100, 100, 50, 50, Color.BLACK);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        this.setBounds(200, 200, 500, 500);
        this.setVisible(true);
    }

    public void paint(Graphics g){
        super.paint(g);
        Graphics2D g2d = (Graphics2D)g;
        g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
        z.draw((Graphics2D)g);
    }

    public static void main(String[] args){
        new VisibleTest();
    }
}
